package com.xt.mvcpilot.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * an address object in the user object
 * 
 * @author txiao
 *
 */
@Entity 
@org.hibernate.annotations.Entity(
		dynamicInsert=true, //not insert null property 
		dynamicUpdate=true  //not update unchanged property
)
@Table(name="ADDRESS")
public class Address extends AppBasicDBObject{
	
	private static final long serialVersionUID = 5753515337233369812L;
	
	@Column(name="streetnumber")
	private String streetNumber;
	@Column(name="street")
	private String street;
	@Column(name="zip") 
	private String zip;
	@Column(name="city")
	private String city;
	@Column(name="state")
	private String state;
	@Column(name="country")
	private String country;
	
	public Address(){}

	public String getStreetNumber() {
		return streetNumber;
	}

	public void setStreetNumber(String streetNumber) {
		this.streetNumber = streetNumber;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}
	
	//getters and setters
	
}
